home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The X-Philes (2nd Revision)
/
The X-Philes Number 1 (1995).iso
/
xphiles
/
coding
/
dsp
/
bfltlib.exe
/
BTEST.C
< prev
next >
Wrap
Text File
|
1991-08-08
|
1KB
|
45 lines
/**************************************************************
btest.c
staff
08-08-91
(C) Texas Instruments Inc., 1992
Refer to the file 'license.txt' included with this
this package for usage and license information.
*************************************************************/
#include "math.h"
#include "float.h"
#include "bflt.h"
bfloat b1, b2, b3, b4, b5;
float f1, f2, f3, f4, f5;
int i;
void main(void)
{
f1 = -0.5;
i = 0;
for(;;)
{
b1 = flt_b(f1);
b2 = bmodf(b1,&b3); f2 = b_flt(b2); f3 = b_flt(b3);
b4 = blog10(b1); f4 = b_flt(b4);
b5 = bldexp(b1,i); f5 = b_flt(b5);
/*
b2 = bsinh(b1); f2 = b_flt(b2);
b3 = bcosh(b1); f3 = b_flt(b3);
b4 = btanh(b1); f4 = b_flt(b4);
b5 = bpow(b1,b1); f5 = b_flt(b5);
b2 = bceil(b1); f2 = b_flt(b2);
b3 = bfloor(b1); f3 = b_flt(b3);
b4 = bfix(b1); f4 = b_flt(b4);
*/
}
}